﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    class Class1
    {
        protected int c;

        protected int s;
    }
    class triangle : Class1
    {

        int di = 2;
        int gao = 3;
        public void sjx()
        {
            Console.WriteLine("三角形面积" + di * gao / 2);
            Console.WriteLine("三角形周长" + di * 3);

        }
    }
    class quadrangle:Class1
    {
        int chang = 5;
        int kuan = 4;
        public void sbx()
        {
            Console.WriteLine("四边形面积" + chang * kuan);
            Console.WriteLine("四边形周长" + (chang + kuan) * 2);

        }
    }
    class round : Class1
    {
        double yzl = 3.14;
        int bj = 5;
        public void yx()
        {
            Console.WriteLine("园的面积" + yzl*bj*bj);
            Console.WriteLine("四边形周长" + yzl*bj*2);

        }
    }

}
